package com.rzz.overalldemo.controller;


import com.rzz.overalldemo.common.RespBean;
import com.rzz.overalldemo.service.ICardService;
import com.rzz.overalldemo.service.impl.CardServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rzz
 * @since 2021-07-30
 */
@RestController
@RequestMapping("/card")
public class CardController {
    @Autowired
    private ICardService cardService;
    @GetMapping("list")
    public RespBean list(){
        return cardService.getList();
    }
}
